<h1>用户资料</h1>
<div class="row_info_sidebar">
<div class="left_info_sidebar">用户名：</div>
<div class="right_info_sidebar"><%=h(user.name)%></div>
</div>
<div class="row_info_sidebar">
<div class="left_info_sidebar">密码：</div>
<div class="right_info_sidebar">*******
<div><a
	href=<%=url_for :controller=>"info", :action=>"modify_password", :id=>user.id %>
	onclick="window.open(this.href,'修改密码','height=300,width=400');return false;">修改密码</a></div>
</div>
</div>
<div class="row_info_sidebar">
<div class="left_info_sidebar">头像：</div>
<div class="right_info_sidebar"><img id="myimage"
	src=<%=url_for(:controller=>"index",:action=>"post_picture",:id=> user.picture_id)%>
	width="60*60" />
<div><a id='mylink'
	href=<%=url_for :controller=>'info', :action => "upload_picture",:id=>user.picture_id,:object=>0 %>
	onclick="window.open(this.href,'上传图片','height=400,width=350');return false;">更改头像</a></div>
</div>
</div>
<div class="row_info_sidebar">
<div class="left_info_sidebar">注册于：</div>
<div class="right_info_sidebar"><%=user.created_at.strftime(" %Y年%m月%d日")%></div>
</div>
<div class="row_info_sidebar">
<div class="left_info_sidebar">上站时间：</div>
<div class="right_info_sidebar"><%=distance_of_time(user.login_at,Time.now) %></div>
</div>
<div class="row_info_sidebar">
<div class="left_info_sidebar">我的标签：</div>
<div class="right_info_sidebar"><span class="tag_info_sidebar"><%=show_tag_list(user.tag_list,5)%></span></div>
</div>